import {request, requestJson} from '../http'
let baseUrl ='http://10.187.46.123'

//获取菜品
export function getAllStock(params={}) {
  const _data = Object.assign(params, {})

  return request({
    url: baseUrl + ':9011/crt_kitchen/order/takeAwayProductDetailList',
    method: 'POST',
    data: _data
  })
}

//获取订单
export function getAllOrder(params={}) {
  const _data = Object.assign(params, {})
  return request({
    url: baseUrl + ':9011/crt_kitchen/order/takeAwayorderList',
    method: 'POST',
    data: _data
  })
}

//更新订单状态
export function updateOrderStatus(params={}) {
  const _data = Object.assign(params, {})
  return request({
    url: baseUrl + ':9015/dispatch/order/updateTakeOrderStatus',
    method: 'POST',
    data: _data
  })
}
